--TEST--
Check for basic expressions
--SKIPIF--
<?php if (!extension_loaded("scheme")) print "skip"; ?>
--FILE--
<?php 
$scheme = new Scheme();

// numeric
echo $scheme->eval("2010"),"\n";

// basic operator
echo $scheme->eval("(+ 123 456)"),"\n";
echo $scheme->eval("(- 333 123)"),"\n";
echo $scheme->eval("(* 12 12)"),"\n";
echo $scheme->eval("(/ 14 7)"),"\n";
echo $scheme->eval("(+ 1.1 2.2)"),"\n";

// multiple operands
echo $scheme->eval("(+ 1 2 3 4 5 6 7 8 9 10)"),"\n";
echo $scheme->eval("(* 1 2 3 4 5 6)"),"\n";

// nested expression
echo $scheme->eval(" (+ (* 1 2) (- 3 4)) "),"\n";
echo $scheme->eval(" (+ (* 4 (+ (* 7 9) (+ 2 7))) (+ (- 5 3) 7)) "),"\n";
?>
--EXPECT--
2010
579
210
144
2
3.3
55
720
1
297
